package com.framework.disconf.web.action;

import com.alibaba.dubbo.config.annotation.Reference;
import com.qitoon.framework.organ.param.OrganizationResult;
import com.qitoon.framework.organ.service.IOrganizationService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/org")
public class OrgAction {

    private static final Logger logger = LoggerFactory.getLogger(OrgAction.class);

    @Reference
    private IOrganizationService organizationService;

    @RequestMapping(value = "/getOrganization", method = RequestMethod.POST)
    public OrganizationResult getApplicationProperty() {
        return organizationService.getOrganizationById(1460784083785555l);
    }

}